package com.ruoyi.poring.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.poring.mapper.ErpReceivableMonthlyReportMapper;
import com.ruoyi.poring.domain.ErpReceivableMonthlyReport;
import com.ruoyi.poring.service.IErpReceivableMonthlyReportService;

/**
 * 应收款月份报Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-01
 */
@Service
public class ErpReceivableMonthlyReportServiceImpl implements IErpReceivableMonthlyReportService 
{
    @Autowired
    private ErpReceivableMonthlyReportMapper erpReceivableMonthlyReportMapper;

    /**
     * 查询应收款月份报
     * 
     * @param id 应收款月份报主键
     * @return 应收款月份报
     */
    @Override
    public ErpReceivableMonthlyReport selectErpReceivableMonthlyReportById(Long id)
    {
        return erpReceivableMonthlyReportMapper.selectErpReceivableMonthlyReportById(id);
    }

    /**
     * 查询应收款月份报列表
     * 
     * @param erpReceivableMonthlyReport 应收款月份报
     * @return 应收款月份报
     */
    @Override
    public List<ErpReceivableMonthlyReport> selectErpReceivableMonthlyReportList(ErpReceivableMonthlyReport erpReceivableMonthlyReport)
    {
        return erpReceivableMonthlyReportMapper.selectErpReceivableMonthlyReportList(erpReceivableMonthlyReport);
    }

    /**
     * 新增应收款月份报
     * 
     * @param erpReceivableMonthlyReport 应收款月份报
     * @return 结果
     */
    @Override
    public int insertErpReceivableMonthlyReport(ErpReceivableMonthlyReport erpReceivableMonthlyReport)
    {
        return erpReceivableMonthlyReportMapper.insertErpReceivableMonthlyReport(erpReceivableMonthlyReport);
    }

    /**
     * 修改应收款月份报
     * 
     * @param erpReceivableMonthlyReport 应收款月份报
     * @return 结果
     */
    @Override
    public int updateErpReceivableMonthlyReport(ErpReceivableMonthlyReport erpReceivableMonthlyReport)
    {
        return erpReceivableMonthlyReportMapper.updateErpReceivableMonthlyReport(erpReceivableMonthlyReport);
    }

    /**
     * 批量删除应收款月份报
     * 
     * @param ids 需要删除的应收款月份报主键
     * @return 结果
     */
    @Override
    public int deleteErpReceivableMonthlyReportByIds(Long[] ids)
    {
        return erpReceivableMonthlyReportMapper.deleteErpReceivableMonthlyReportByIds(ids);
    }

    /**
     * 删除应收款月份报信息
     * 
     * @param id 应收款月份报主键
     * @return 结果
     */
    @Override
    public int deleteErpReceivableMonthlyReportById(Long id)
    {
        return erpReceivableMonthlyReportMapper.deleteErpReceivableMonthlyReportById(id);
    }
}
